/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ControlLayer;

import ModelLayer.Actor;
import java.util.EventObject;

/**
 *
 * @author Moulde
 */
public class LoginStateChangedEvent extends EventObject
{
    Actor employee;
    int LoginState;

    final public static int LoggedInState = 21;
    final public static int LoggedOutState = 54;

    public LoginStateChangedEvent(Object source, Actor employee, int LoginState)
    {
        super(source);
        this.employee = employee;
        this.LoginState = LoginState;
    }

    public boolean isLoggedOut()
    {
        return LoginState == LoggedOutState;
    }

    public boolean isLoggedIn()
    {
        return LoginState == LoggedInState;
    }

    public int getLoginState()
    {
        return LoginState;
    }

    public Actor getEmployee()
    {
        return employee;
    }
}
